﻿using Microsoft.UI.Xaml.Data;
using System;

namespace WinUITest.Converters
{
    public class StringConverter : IValueConverter
    {
        public object Convert(object? value, Type targetType, object parameter, string language)
        {
            return value?.ToString() ?? string.Empty;
        }

        public object ConvertBack(object value, Type targetType, object parameter, string language)
        {
            return value;
        }
    }
}
